package com.atguigu08._interface.ex3;

public class Test {
    public static void main(String[] args) {
        Vehicle[] vehicles=new Vehicle[3];
        vehicles[0]=new Bicycle("邦德","black");
        vehicles[1]=new ElectricVehicle("雅迪","red");
        vehicles[2]=new Car("比亚迪","white","1001");
        Developer developer=new Developer("tom",38);
        developer.takingVehicle(vehicles[0]);
        developer.takingVehicle(vehicles[1]);
        developer.takingVehicle(vehicles[2]);
    }
}
